b7b9186fc28d2df225a6c7a46b7c09900f987669,src/org/openstreetmap/josm/command/Command.java,Command,Command,#,63

Before Change


    private OsmDataLayer layer;

    public Command() {
        this.layer = Main.map.mapView.getEditLayer();
    }

    /**

After Change


     * Creates a new command in the context of the current edit layer, if any
     */
    public Command() {
        this.layer = Main.map != null && Main.map.mapView != null ? Main.map.mapView.getEditLayer() : null;
    }

    /**